package DesignPattern;

public class BProduct implements IProductFactory{
    @Override
    public IComputerInterface iComputerInterface() {
        return new BComputer();
    }

    @Override
    public ITvInterface iTvInterface() {
        return new BTV();
    }
    public static void main(String[] args) {
        AProduct aProduct = new AProduct();
        IComputerInterface iComputerInterface = aProduct.iComputerInterface();
        iComputerInterface.start();
        iComputerInterface.shutdown();
        ITvInterface iTvInterface = aProduct.iTvInterface();
        iTvInterface.start();
        iTvInterface.shutdown();
    }

}
